package org.yscz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: pe
 * @description: 量表分类表
 * @author: muqs
 * @create: 2021-08-19 10:54
 **/
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "t_scale_type")
public class ScaleType implements Serializable {

    /**
     * 量表分类ID
     */
    @TableId(value = "scale_type_id", type = IdType.AUTO)
    private Long scaleTypeId;

    /**
     * 量表分类名称
     */
    @TableField(value = "scale_type_name")
    private String scaleTypeName;

    /**
     * 量表数量
     */
    @TableField(value = "scale_num")
    private Integer scaleNum;

    /**
     * 编辑时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date updateTime;

    /**
     * 排序
     */
    @TableField(value = "scale_type_sort")
    private String scaleTypeSort;

    /**
     * 编辑人
     */
    @TableField(value = "scale_type_editor")
    private String scaleTypeEditor;

    /**
     * 量表分类说明
     */
    @TableField(value = "scale_type_content")
    private String scaleTypeContent;
}
